#include <stdio.h>

void main(){
	int a,b,c;
	int *pa=&a,*pb=&b,*pc=&c;
	scanf("%d %d %d",pa,pb,pc);
	if ( *pa>*pb ){
		if ( *pb>*pc ){
			printf("%d %d %d",*pc,*pb,*pa);
		}
		else if ( *pc>*pa ){
			printf("%d %d %d",*pb,*pa,*pc);
		}else{
			printf("%d %d %d",*pb,*pc,*pa);
		}
	}
	else{
		if ( *pa>*pc ){
			printf("%d %d %d",*pc,*pa,*pb);
		}else if ( *pc>*pb ){
			printf("%d %d %d",*pa,*pb,*pc);
		}else{
			printf("%d %d %d",*pa,*pc,*pb);
		}
	}
}
